from flask import Flask,render_template

app = Flask(__name__)

@app.route('/')
def index():
    return render_template('index.html')

@app.context_processor
def context_processor():
    #返回的一定是字典
    return {'uname':'zs'}

if __name__ == '__main__':
    app.run(debug=True)